﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TourInfo.aspx.cs" Inherits="SeccondExampleExam.TourInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="ContentMain" ContentPlaceHolderID="MainContent" runat="server">
    <asp:DetailsView ID="DetailsViewTour" runat="server" AutoGenerateRows="False" 
        DataKeyNames="TourID" DataSourceID="EntityDataSourceTourInfo" 
        Height="50px" Width="125px">
        <Fields>
            <asp:BoundField DataField="TourID" HeaderText="TourID" 
                ReadOnly="True" SortExpression="TourID" />
            <asp:BoundField DataField="Destination" HeaderText="Destination" 
                SortExpression="Destination" />
            <asp:BoundField DataField="StartDate" HeaderText="StartDate" 
                SortExpression="StartDate" />
            <asp:BoundField DataField="EndDate" HeaderText="EndDate" 
                SortExpression="EndDate" />
            <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="TourUniqueReference" 
                HeaderText="TourUniqueReference" SortExpression="TourUniqueReference" />
        </Fields>
    </asp:DetailsView>
    <asp:EntityDataSource ID="EntityDataSourceTourInfo" runat="server" 
        ConnectionString="name=TouristAgencyEntities" 
        DefaultContainerName="TouristAgencyEntities" EnableFlattening="False" 
        EntitySetName="Tours">
    </asp:EntityDataSource>
</asp:Content>
